#include <stdio.h>

void swap(int x,int y)
{
    int temp;
    temp = x;
    x = y;
    y = temp;
}
int main()
{
    int a = 10;
    int b = 20;
    printf("交换之前a,b的值分别为：\n");
    printf("a = %d\n",a);
    printf("b = %d\n",b);
    swap(a,b);
    printf("交换之后a,b的值分别为：\n");
    printf("a = %d\n",a);
    printf("b = %d\n",b);
    return 0;
}
